package com.zjj.day2.test4;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
public class Director extends Employee {

    private int trafficAllowance;

    @Override
    public void show() {
        super.show();
        System.out.println("交通补助: " + trafficAllowance);
    }

    public Director(String name, String address, int salary, int trafficAllowance) {
        super(name, address, salary);
        this.trafficAllowance = trafficAllowance;
    }

    public Director() {
        super();
    }

    public Director(int trafficAllowance) {
        this.trafficAllowance = trafficAllowance;
    }

    /**
     * 获取
     * @return trafficAllowance
     */
    public int getTrafficAllowance() {
        return trafficAllowance;
    }

    /**
     * 设置
     * @param trafficAllowance
     */
    public void setTrafficAllowance(int trafficAllowance) {
        this.trafficAllowance = trafficAllowance;
    }

}
